From 34bbd7a252d87460b9ce63727a772cd0ddd081f9 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 18 Mar 2009 11:32:46 +0000 Subject: [PATCH] xend: Use vnc-listen setting specified in xend config file If domU frame buffer configuration has no vnclisten attribute set, use the global vnc-listen address specified in xend configuration file when updating vfb location. Currently the hardcoded value 'localhost' is used. Signed-off-by: Jim Fehlig --- tools/python/xen/xend/XendDomainInfo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 0050a3ac72..f8b8f8a28c 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1410,7 +1410,8 @@ class XendDomainInfo: for dev_uuid, (dev_type, dev_info) in self.info['devices'].items(): if dev_type == 'vfb': old_location = dev_info.get('location') - listen_host = dev_info.get('vnclisten', 'localhost') + listen_host = dev_info.get('vnclisten', \ + XendOptions.instance().get_vnclisten_address()) new_location = '%s:%s' % (listen_host, str(vnc_port)) if old_location == new_location: break -- 2.30.2